﻿@using GTAuto.DAL.DAL
@using GTAuto.DAL.Enums
@{
    int count;
    var brands = DALBrands.Singleton.GetByType(BrandTypeEnum.Auto, 1, 10000, out  count);
    var brandId = HttpContext.Current.Request.Url.AbsolutePath.Split('/').Last();;
}
<div id="prodaja">
    <div id="prodaja_title">
        Марки авто</div>
    <div id="prodaja_block" class="left_menu">
        <ul>
            @foreach (var item in brands)
            {
                string clas = "";
                if(item.Id.ToString()==brandId)
                {
                    clas = "active";
                }

                <li class="@clas"><a href=@Url.Action("Index", "AutoBrands", new { @id = item.Id })>
                                    
                                  @*    <img src="@string.Format("{0}/{1}", DALSettngs.Singleton.Get("BrendLogosAdminView").Value, @item.SmallLogoPath)" alt="" />*@

                                      <img src=@Url.Action("GetInSize9971", "Img", new { @id = item.LogoPath }) /> 

                                      <span>@item.Name</span> </a></li>
            }
        </ul>
        <div class="clear">
        </div>
    </div>
</div>
